#!/bin/bash
echo 'export JAVA_HOME=/usr/local/java/jdk-11.0.0.2' >> /etc/profile
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile
echo 'export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib' >> /etc/profile
source /etc/profile
sed -i 's/^pool.*$/pool 192.168.88.130 iburst/g' /etc/chrony.conf
export JAVA_HOME=/usr/local/java/jdk-11.0.0.2
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib


cd /usr/local/download/*tomcat*/bin && bash startup.sh

